<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String ctx = request.getContextPath();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="<%=ctx%>/widgets/css/default.css" rel="stylesheet"
	type="text/css" />
<link rel="stylesheet" type="text/css"
	href="<%=ctx%>/widgets/js/easyui/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css"
	href="<%=ctx%>/widgets/js/easyui/themes/icon.css" />
<script type="text/javascript"
	src="<%=ctx%>/widgets/js/jquery-2.1.4.min.js"></script>
<script type="text/javascript"
	src="<%=ctx%>/widgets/js/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="<%=ctx%>/widgets/js/easyui/easyui-lang-zh_CN.js"></script>
<script type="text/javascript"
	src="<%=ctx%>/widgets/js/util/JsonUtils.js"></script>	
<script type="text/javascript"
	src="<%=ctx%>/widgets/js/depart/depart.js"></script>
</head>
<body>
<body class="easyui-layout" style="overflow-y: hidden" scroll="no">
	<div region="west" split="false" title="组织机构" style="width: 400px;"
		collapsible="false">
		<div id="orgtree" style="padding: 10px"></div>
		<div id="mm" class="easyui-menu" style="width: 120px;">
			<div onclick="perAddChildDepart()" data-options="iconCls:'icon-add'">添加下级部门</div>
			<div onclick="delDepart()" data-options="iconCls:'icon-remove'">删除本部门</div>
			<div onclick="ediDepart()" data-options="iconCls:'icon-edit'">置为无效</div>
		</div>
		<div id="addChildDepart" class="easyui-window" title="部门管理" collapsible="false"
			minimizable="false" maximizable="false" icon="icon-save"
			style="width: 300px; height: 180px; padding: 5px; background: #fafafa;"
			shadow="false" resizable="false">
			<div class="easyui-layout" fit="true">
				<div region="center" border="false"
					style="padding: 10px; background: #fff; border: 1px solid #ccc;">
					<input type="hidden" name="artistId" />
					<table>
						<tr>
							<td style="width: 75px">部门名称</td>
							<td><input type="text" name="deptname"
								class="easyui-validatebox" /></td>
						</tr>
						<tr>
							<td style="width: 75px">上级部门ID</td>
							<td><input type="text" name="upperdeptid" readonly="readonly"
								class="easyui-validatebox" /></td>
						</tr>
						<tr>
							<td style="width: 75px">上级部门名称</td>
							<td><input type="text" name="upperdeptname" readonly="readonly"
								class="easyui-validatebox" /></td>
						</tr>
					</table>
				</div>
				<div region="south" border="false"
					style="text-align: right; height: 30px; line-height: 30px;">
					<a class="easyui-linkbutton" iconcls="icon-ok"
						href="javascript:void(0)" onclick="saveDepart()"> 保存</a> <a
						class="easyui-linkbutton" iconcls="icon-cancel"
						href="javascript:void(0)" onclick="cancleDepart()"> 取消</a>
				</div>
			</div>
		</div>
	</div>
	<div id="addDepartWin"></div>
	<div id="mainPanle" region="center" title="部门列表"
		style="background: #eee; overflow-y: hidden">
		<div id='departDetails'></div>	
	</div>
</body>
</body>
</html>